﻿using DevExpress.Xpf.Charts;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Data;

namespace TeBigCommonUI.Items
{
    /// <summary>
    /// Interaction logic for Bar2D.xaml
    /// </summary>
    public partial class Dount3DChart : SimpleDiagramChartControl
    {
        public Dount3DChart()
        {
            InitializeComponent();
        }

        protected override Series CreateSeriesFromDataSource(IList<SeriesDataSource> source, int index)
        {
            return new PieSeries3D()
            {
                Model = new RectanglePie3DModel(),
                DepthTransform = source[index].DepthTransform,
                HoleRadiusPercent = source[index].HoleRadiusPercent,
            };

        }

        protected override void OnInitChart()
        {
            InitChartInternal(chart, chart_diagram);
        }
    }
}